package models

type Permission struct {
	ID            int64  `json:"id" gorm:"column:id;type:int;autoIncrement;primaryKey;comment:'id'"`
	Name          string `json:"name" gorm:"column:name;type:varchar(32);default:null;comment:'路径名'"`
	Path          string `json:"path" gorm:"column:path;type:varchar(512);not null;comment:'路径'"`
	RequestMethod string `json:"requestMethod" gorm:"column:request_method;type:varchar(32);not null;comment:'请求方式'"`
	CreateTime    string `json:"createTime" gorm:"column:create_time;type:datetime;not null;comment:'创建时间'"`
	UpdateTime    string `json:"updateTime" gorm:"column:update_time;type:datetime;default: null;comment:'修改时间时间'"`
	Status        int    `json:"status" gorm:"column:status;type:tinyint;default:1;comment:'状态1正常-1禁用0未知'"`
}

func (Permission) TableName() string {
	return "permission"
}
